//
//  ViewController.m
//  EmptyProjectDrawRect
//
//  Created by YannisChou on 16/3/24.
//  Copyright © 2016年 Alibaba. All rights reserved.
//

#import "ViewController.h"
#import "KCView.h"
#import "KCVIew2.h"
#import "KCView3.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    KCView *view = [[KCView alloc] initWithFrame:CGRectMake(0, 10, 300, 110)];
    view.backgroundColor = [UIColor redColor];
    [self.view addSubview:view];
    
    KCVIew2 *view2 = [[KCVIew2 alloc] initWithFrame:CGRectMake(0, 120, 300, 110)];
    view2.backgroundColor = [UIColor blueColor];
    [self.view addSubview:view2];
    
    KCView3 *view3 = [[KCView3 alloc] initWithFrame:CGRectMake(0, 240, 350, 110)];
    view3.backgroundColor = [UIColor greenColor];
    [self.view addSubview:view3];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
